using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;

namespace CoreRp.Models
{
    public class MsgResult<T>
    {
        [JsonConverter(typeof(StringEnumConverter))]
        public E_States state { get; set; }
        public T data { get; set; }
        public string msg { get; set; }

    }
    public class MsgResult
    {
        [JsonConverter(typeof(StringEnumConverter))]
        public E_States state { get; set; }
        public string msg { get; set; }

    }
    [JsonConverter(typeof(StringEnumConverter))]
    public enum E_States
    {
        Y,
        N
    }
}
